﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="_SampleRadGrid.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form._SampleRadGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <telerik:RadComboBox ID="RadComboBox1" Runat="server" AutoPostBack="True" 
            onselectedindexchanged="RadComboBox1_SelectedIndexChanged">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="เลือก" Value="" Selected="True"/>
                <telerik:RadComboBoxItem runat="server" Text="ไตรมาส" Value="ไตรมาส" />
                <telerik:RadComboBoxItem runat="server" Text="ปี" Value="ปี" />
            </Items>
        </telerik:RadComboBox>
    
        <telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" GridLines="None" 
            AutoGenerateColumns="False" AllowMultiRowEdit="True" 
            AllowMultiRowSelection="True" onprerender="RadGrid1_PreRender">
       <MasterTableView EditMode="InPlace">
       <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

      <RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridBoundColumn FilterControlAltText="Filter Month column" 
            UniqueName="Title" HeaderText="Title" DataField="Key" ReadOnly="True" >
        </telerik:GridBoundColumn>

        <telerik:GridNumericColumn DecimalDigits="2" HeaderText="KPI Value" DataField="Value"
            FilterControlAltText="Filter KPI_Value column" UniqueName="KPI_Value">
        </telerik:GridNumericColumn>

        <telerik:GridTemplateColumn HeaderText="KPI VALUES 2" UniqueName="KPI_Value2">
            <ItemTemplate>
                <telerik:RadNumericTextBox runat="server" ID="tex" Text='<%# Eval("Value")%>' />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
    
    </div>
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <telerik:RadButton ID="RadButton1" runat="server" onclick="RadButton1_Click" 
        Text="RadButton">
    </telerik:RadButton>
                <telerik:RadNumericTextBox runat="server" ID="tex2"   />
    </form>
</body>
</html>
 
